package scannerDome;

import java.util.Scanner;

public class Dome1 {
    public static void main(String[] args) {
        //创建scanner
        Scanner scanner = new Scanner(System.in);
        //提示输入名字
        System.out.println("请输入你的名字：");
        //用name来记录输入的姓名
        String name = scanner.next();
        //提示输入年龄
        System.out.println("请输入你的年龄：");
        //用age来记录输入的年龄
        int age = scanner.nextInt();
        //输出姓名和年龄
        System.out.println("请输入你的成绩：");
        double great = scanner.nextDouble();
        System.out.println("姓名为："+name);
        System.out.println("年龄为："+age);
        System.out.println("成绩为："+great);
    }
}
